package com.tm.chargecar.service.impl;

import com.tm.chargecar.entity.PersonEntity;
import com.tm.chargecar.mapper.PersonMapper;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.PersonService;
import com.tm.chargecar.vo.PersonVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangSang
 * @create 2022-08-24 16:27
 *
 *  负责人
 */
@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    /**
     *  模糊查询维修负责人
     * @param personVo
     * @return
     */
    @Override
    public Result queryPerson(PersonVo personVo) {

      List<PersonEntity> personVoList =  personMapper.queryPerson(personVo);

        return Result.SUCCESS(personVoList);
    }
}
